import Vue from 'vue'
import Router from 'vue-router'
import pages from '@/pages'
import Wrap from '@/routeView/Wrap'
import Home from '@/routeView/Home'
import overView from './overView'
import researchAssessment from './researchAssessment' // 科研考核
import projectManagement from './projectManagement' // 项目管理
import securityCenter from './securityCenter' // 安全中心
import funding from './funding' // 项目经费
import dataAnalysis from './dataAnalysis' // 项目经费
import configuration from './configuration' // 配置中心

import components from './components'
import researchTalent from './researchTalent' // 科研人才管理
import researchTools from './researchTools' // 科研工具
import helpCenter from './helpCenter' // 帮助中心
import researchInspection from './researchInspection' // 科研巡视
import resultsView from './resultsView' // 科研巡视
import comments from './components'
import intramuralProject from './intramuralProject'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: '顶部导航',
      redirect: '/index/overview/home',
      component: Home,
      children: [
        overView,
        projectManagement,
        intramuralProject,
        funding,
        researchAssessment,
        resultsView,
        researchInspection,
        researchTalent,
        researchTools,
        configuration,
        securityCenter,
        dataAnalysis,
        helpCenter,
        {
          redirect: '/index/widget/info',
          component: Wrap,
          name: '公共组件',
          label: '公共组件',
          path: 'widget',
          icon: 'icon-home',
          children: [
            {
              component: pages.Index.Widget.Bread,
              label: 'bead',
              path: 'info',
              name: '',
            }
          ]
        }
      ]
    },

  ]
})
